
package com.work.test;

import java.io.Serializable;

import javax.xml.bind.annotation.*;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "attribute", propOrder = {"label", "type", "required", "readonly", "search"})
public class DsXmlObjectAttribute implements Serializable {

	private static final long serialVersionUID = -225104710919601498L;

	@XmlAttribute(name = "operation", required = true)
	private String operation;

	@XmlElement(required = true, name = "label")
	private String label;

	@XmlElement(required = true, name = "type")
	private DsXmlAttributeType type;

	@XmlElement(required = true, name = "required")
	private boolean required;

	@XmlElement(required = true, name = "readonly")
	private boolean readonly;

	@XmlElement(required = true, name = "search")
	private boolean search;

	public String getOperation()
	{
		return operation;
	}

	public void setOperation(String operation)
	{
		this.operation = operation;
	}

	public String getLabel()
	{
		return label;
	}

	public void setLabel(String label)
	{
		this.label = label;
	}

	public DsXmlAttributeType getType()
	{
		return type;
	}

	public void setType(DsXmlAttributeType type)
	{
		this.type = type;
	}

	public boolean isRequired()
	{
		return required;
	}

	public void setRequired(boolean required)
	{
		this.required = required;
	}

	public boolean isReadonly()
	{
		return readonly;
	}

	public void setReadonly(boolean readonly)
	{
		this.readonly = readonly;
	}

	public boolean isSearch()
	{
		return search;
	}

	public void setSearch(boolean search)
	{
		this.search = search;
	}

}
